package com.cake.liulanxiangzhu.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 图片
 * @TableName admin_picture
 */
@TableName(value ="admin_picture")
@Data
public class AdminPicture implements Serializable {
    /**
     * 记录id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 相册id
     */
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private  Integer albumId;

    /**
     * 图片url
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String url;

    /**
     * 图片简介
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String description;

    /**
     * 创建时间
     */

    private Date creatTime;

    /**
     * 修改时间
     */

    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}